package com.show.dto.sys_role;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;
import java.util.Date;

/**
 * 用户角色中间表
 *
 * @author 王硕
 * @Param
 * @date 2018-1-30
 */
@Entity
public class EmpRole {
    @Id
    @Column(name = "emp_role_id")//用户-角色ID
    private String empRoleId;
    @Column(name = "role_id")//角色ID
    private String roleId;
    @Column(name = "cdate")
    private Date cdate;//日期

    @Transient
    private String roleIds;  //角色id 集合

    public String getRoleIds() {
        return roleIds;
    }

    public void setRoleIds(String roleIds) {
        this.roleIds = roleIds;
    }

    public String getEmpRoleId() {
        return empRoleId;
    }

    public void setEmpRoleId(String empRoleId) {
        this.empRoleId = empRoleId;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public Date getCdate() {
        return cdate;
    }

    public void setCdate(Date cdate) {
        this.cdate = cdate;
    }
}
